package com.wpen.unit.cvt.job;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.wpen.unit.infra.mybatis.job.po.TaskInfoPo;
import com.wpen.unit.web.dto.job.TaskInfoAddRequest;
import com.wpen.unit.web.dto.job.TaskInfoAddResponse;
import com.wpen.unit.web.dto.job.TaskInfoListRequest;
import com.wpen.unit.web.dto.job.TaskInfoListResponse;
import com.wpen.unit.web.dto.job.TaskInfoListRowsResponse;
import com.wpen.unit.web.dto.job.TaskInfoModRequest;
import com.wpen.unit.web.dto.job.TaskInfoModResponse;

/**
 * 任务信息转换类
 * 
 * @author pg
 *
 */
@Mapper
public interface TaskInfoCvt {
    TaskInfoCvt INSTANCE = Mappers.getMapper(TaskInfoCvt.class);

    TaskInfoPo queryListDto2Do(TaskInfoListRequest taskInfoListRequest);

    TaskInfoListResponse queryListDo2Dto(TaskInfoPo taskInfoPo);

    TaskInfoListRowsResponse queryListRowDo2Dto(TaskInfoPo taskInfoPo);

    TaskInfoPo addDto2Do(TaskInfoAddRequest taskInfoAddRequest);

    TaskInfoAddResponse addDo2Dto(TaskInfoPo taskInfoPo);

    TaskInfoPo modDto2Do(TaskInfoModRequest taskInfoModRequest);

    TaskInfoModResponse modDo2Dto(TaskInfoPo taskInfoPo);

}
